package Student;

import java.util.Comparator;

public class AgeCompare implements Comparator {
    public int compare(Object o1, Object o2) {
        return ((Student)o1).age - ((Student)o2).age;
    }
}
